
<style type="text/css">

#sidebar{display:none;}
#content{width:960px; <?php if(!empty($view_data['if_index_page'])): ?>margin-top:350px;<?php endif; ?>}

/*************** @start@ #discount_overview_div 折扣全览 ***************/
#discount_overview_div{margin:10px auto;}
#discount_overview_content{}
.spec_cat_discount_overview_div{margin-top:10px;}
.spec_cat_discount_overview_banner{
    height:35px;
    border-bottom: 2px solid #06f;
}
.spec_cat_discount_overview_title{float:left; padding: 10px;}
.spec_cat_discount_overview_title a{color:#06f; font-weight:bold;}
.spec_cat_discount_overview_more{float:right; padding: 10px;}
.spec_cat_discount_overview_more a{/* color:#06f; font-weight:bold; */}
.spec_cat_discount_overview_content{height:570px; margin-top: 10px;}

/*************** @start@ .goodsList ***************/
.goodsList .singleGoods{float:left; /*width:130px; height:220px;*/ width:180px; height:272px; /* padding:0px 10px 10px 10px; */ margin:4px 5px; padding:0px; border: 1px solid #f5f5f5; /*padding:0px 15px 10px 15px*/;}
.goodsList .singleGoods:hover{border: 1px solid #ccc;}
.goodsList .singleGoods a{position:relative; display: inline-block;}
.goodsList .singleGoods img{/*padding:6px; width:120px; height:120px;*/ padding:0px; width:180px; height:180px; /* border:1px solid #ccc; */}
.goodsList .singleGoods_title{padding:3px 5px 0px; text-align:center; line-height:20px; /*height:40px;*/ /*overflow:hidden; text-overflow:ellipsis;
    white-space:nowrap;*/}
.goodsList .singleGoods_title .goodsPrice{color:#F30;}
/*************** @end@ .goodsList ***************/

/*************** @end@ #discount_overview_div 折扣全览 ***************/
</style>


<div class="clearboth"></div>
<div id="discount_overview_div">
    <div id="discount_overview_content">

        <?php foreach ($view_data['direct_children_cat_list'] as $cat_key => $direct_children_cat): ?>
        <div class="clearboth"></div>
        <div class="spec_cat_discount_overview_div">
            <div class="spec_cat_discount_overview_banner">
                <div class="spec_cat_discount_overview_title"><a href="<?php echo $this->get_url(array('route' => 'good_index', 'cat_id' => $direct_children_cat['id']), true); ?>" target="_blank"><?php echo $direct_children_cat['name']; ?></a></div>
                <div class="spec_cat_discount_overview_more"><a href="<?php echo $this->get_url(array('route' => 'good_index', 'cat_id' => $direct_children_cat['id']), true); ?>" target="_blank">更多>></a></div>
            </div>

            <div class="clearboth"></div>
            <div class="spec_cat_discount_overview_content goodsList">
                <?php //foreach ($direct_children_cat['good_list'] as $good): ?>
                <?php foreach ($view_data['direct_children_cat_good_list'][$cat_key] as $good): ?>
                <div class="singleGoods">

                    <a href="<?php echo $this->get_url(array('route' => 'good_info', 'id' => $good['id']), true); ?>" target="_blank" title="<?php echo $good['name']; ?>"><img src="<?php echo $good['image_thumb'][0]; ?>" /></a>

                    <p class="singleGoods_title"><a href="<?php echo $this->get_url(array('route' => 'good_info', 'id' => $good['id']), true); ?>" target="_blank" title="<?php echo $good['name'] ?>"><?php echo $good['name_sub']; ?></a></p>

                    <p class="singleGoods_title">
                        <span class="goodsPrice">￥<!--¥--> <?php echo $good['min_price']; ?><?php if($good['max_price'] > $good['min_price']): ?> ～ <?php echo $good['max_price']; ?><?php endif; ?></span>
                    </p>

                </div>
                <?php endforeach; ?>

            </div>

        </div>
        <?php endforeach; ?>

    </div>
</div>